﻿using System.Windows.Input;

namespace CuteWallpaperDemo.UI.Windows
{
    public class CustomWindow : CustomWindowBase
    {
        public CustomWindow()
        {
            CommandBindings.Add(new CommandBinding(CustomCommands.TopWindowCommand, TopWindow));
            CommandBindings.Add(new CommandBinding(CustomCommands.SetThemeCommand));
        }

        private bool isTop;
        private void TopWindow(object sender, ExecutedRoutedEventArgs e)
        {
            isTop = !isTop;
            this.Topmost = isTop;
        }

    }
}
